// ========================================================
// Other functions that can be used for the project
// Shuttle PB Mk2
// Made by SolarLiner
// ========================================================
#include "ShuttlePBMk2.h"


double ShuttlePBMk2::DEGto01(const double angle)
{
	return angle/360*4;
}

PARTICLESTREAMSPEC ShuttlePBMk2::DeclareParticleStream(DWORD flag, double srcsize, double srcrate, double v0, double srcspread, double lifetime, double growthrate, double atmslowdown, enum PARTICLESTREAMSPEC::LTYPE ltype, enum PARTICLESTREAMSPEC::LEVELMAP levelmap, double lmin, double lmax, enum PARTICLESTREAMSPEC::ATMSMAP atmsmap, double amin, double amax, SURFHANDLE tex)
{
	PARTICLESTREAMSPEC newstream = {flag, srcsize, srcrate, v0, srcspread, lifetime, growthrate, atmslowdown, ltype, levelmap, lmin, lmax, atmsmap, amin, amax, tex};
	return newstream;
}

void ShuttlePBMk2::DefineThrusters()
{
	int ia=0;
	for(ia=0; ia<3; ia++)
		SetThrusterResource(th_h[ia], ph_h[0]);
	
	int ib=3;
	for(ib=3; ib<16; ib++)
		SetThrusterResource (th_h[ib], ph_h[1]);
	oapiWriteLog("PB2/Sys>Query.Thrusters.Activate");
}

void ShuttlePBMk2::ClearThrusters()
{
	int i=0;
	for(i=0; i<16; i++)
		SetThrusterResource(th_h[i], NULL);
	oapiWriteLog("PB2/Sys>Query.Thrusters.Deactivate");
}

char *ShuttlePBMk2::SendHudMessage()
{
	dHudMessageDelay=15;
	return cUmmuHudDisplay;
}